package hlhj.fhp.checkpoint.adp

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import hlhj.fhp.checkpoint.R
import hlhj.fhp.checkpoint.javaBean.ProblemBean

/**
 * Created by Never Fear   on 2018\11\22 0022.
Never More....
 */
class ProblemAdp(private val datas:ArrayList<ProblemBean.InfoBean.DataBean>)
    :BaseQuickAdapter<ProblemBean.InfoBean.DataBean,BaseViewHolder>(R.layout.problem_item,datas) {
    override fun convert(helper: BaseViewHolder?, item: ProblemBean.InfoBean.DataBean?) {
        helper?.setText(R.id.itemTv,"Q${item?.id}")
        helper?.setText(R.id.itemQuestion,item?.question)
        helper?.setText(R.id.itemAnwser,item?.answer)
    }
}